package py.edu.ucom.cadira.gui;

import java.io.IOException;
import java.net.UnknownHostException;

import py.edu.ucom.cadira.logic.AgenteLargo;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class CadiraMobile extends Activity {
	private String tagDebug;
    /** Called when the activity is first created. */
    @SuppressWarnings("static-access")
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try {
			AgenteLargo a = new AgenteLargo("192.168.2.22");
			tagDebug = "Le envio mi ip";
			Log.d(tagDebug,"localhost");
			a.main(a);
			//a.login("largo", "123");
			tagDebug = "Me logueo";
			Log.d(tagDebug,"largo 123");
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			Log.d("Socket Exception",e.getMessage());
			e.printStackTrace();
		}
    }
}